
import * as types from '../store/action-types';
import {put,call,take,fork,cancel,cancelled,race} from 'redux-saga/effects';
import {delay3} from '../utils';
export default function* raceSaga(){
    //两个effect会同时开始执行,
   let result = yield race({
       a:call(delay3,1000),
       b:call(delay3,2000)
   });
   console.log(result);//{a:xx,b:yy}
}